<template>
  <div class="wallet-title">
    <van-sticky :offset-top="0">
      <van-nav-bar
        :title="title"
        left-arrow
        @click-left="$router.go(-1)"
      >
        <template #right>
          <slot name="right"></slot>
        </template>
        <slot name="searchSlot"></slot>
      </van-nav-bar>
    </van-sticky>
  </div>
</template>

<script>
export default {
  props: {
    title: String
  },
  data() {
    return {
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.wallet-title /deep/ {
  .van-nav-bar .van-icon {
    color: #222;
  }
  .van-nav-bar .van-ellipsis {
    font-size: 14px;
  }
}
</style>